%MonitoringSSAS_Drive%
cd%MonitoringSSAS_Path%
call setVariables.cmd
cd %MonitoringSSAS_Path%Stopping_Data_Collection

%ASMCD_Path%ascmd.exe -S %SSASServerSSASInstance% -i Stop_SSAS_Server_Trace.xmla
sqlcmd -S %MDWDataCollectionServerInstance% -i Upload_Trace_Data.sql
sqlcmd -S %MDWDataCollectionServerInstance% -i Stop_Trace_Upload.sql
sqlcmd -S %MDWDataCollectionServerInstance% -i Stop_DMV_Collection.sql
sqlcmd -S %SSASServerDBInstance% -i Stop_Collecting_SSAS_Perf_Mon_Data.sql
sqlcmd -S %MDWDataCollectionServerInstance% -i Execute_MDW_Load_Perfmon_Counter_Config_Table_SP.sql
pause
